:art: Update membercard_extradata

huangqimin001 4 years ago
parent
commit
e1541b74c8
1 changed files with 5 additions and 1 deletions
  1. 5 1
      miniapp/views.py

+ 5 - 1
miniapp/views.py

@@ -246,7 +246,11 @@ def membercard_extradata(request):
246 246
 
247 247
     extraData = get_miniapp_extraData(settings.MEMBER_CARD_ID, outer_str='miniapp', appid=appid, secret=secret, storage=RedisStorage(r))
248 248
 
249
-    return response(200, 'Get extraData Success', u'获取 extraData 成功', extraData)
249
+    return response(200, 'Get extraData Success', u'获取 extraData 成功', {
250
+        'encrypt_card_id': extraData.get('encrypt_card_id', ''),
251
+        'outer_str': extraData.get('outer_str', ''),
252
+        'biz': extraData.get('biz', ''),
253
+    })
250 254
 
251 255
 
252 256
 @logit